<div id="sidebar" class="sidebar">
			<!-- begin sidebar scrollbar -->    
			<div data-scrollbar="true" data-height="100%">
				<!-- begin sidebar user -->
				<ul class="nav">
					<li class="nav-profile">
						<div class="image">
							<a href="javascript:;"><img src="<?php echo config_item("admin_static"); ?>assets/img/personal.png" alt="" /></a>
						</div>
						<div class="info">
							<?php echo $username; ?>
							<small>超级管理员</small>
						</div>
					</li>
				</ul>
				<!-- end sidebar user -->
				<!-- begin sidebar nav -->
				<ul class="nav">
					<li class="nav-header">导航</li>
					
					<!-- <li class="has-sub">
						<a href="javascript:;">
						    <i class="fa fa-suitcase"></i> 
						    <b class="caret pull-right"></b>
						    <span>UI Elements</span> 
						</a>
						<ul class="sub-menu">
							<li><a href="ui_general.html">General</a></li>
							<li><a href="ui_typography.html">Typography</a></li>
							<li><a href="ui_tabs_accordions.html">Tabs & Accordions</a></li>
							<li><a href="ui_modal_notification.html">Modal & Notification</a></li>
							<li><a href="ui_widget_boxes.html">Widget Boxes</a></li>
							<li><a href="ui_media_object.html">Media Object</a></li>
							<li><a href="ui_buttons.html">Buttons</a></li>
							<li><a href="ui_icons.html">Icons</a></li>
						</ul>
					</li> -->
					<?php

						foreach ($nav as $key => $value) {
							
							echo '<li class="has-sub">
										<a href="javascript:;">
										    <i class="fa '.$value['icon'].'"></i> 
										    <b class="caret pull-right"></b>
										    <span>'.$value['name'].'</span> 
										</a>
										<ul class="sub-menu">
								 ';
							foreach ($value['children'] as $key2 => $value2) {																			
									
									echo '<li><a href="'.$value2['url'].'" target="main">'.$value2['name'].'</a></li>';
																																																												
							}
							echo "</ul></li>";							
						}
					 ?>
					
			        <!-- end sidebar minify button -->
				</ul>
				<!-- end sidebar nav -->
			</div>
			<!-- end sidebar scrollbar -->
		</div>